<table id="dataTable"></table>

{include file="system@block/layui" /}
<script type="text/javascript">
    layui.use(['table', 'laydate', 'form', 'laytpl','cookie','tool'], function() {
        var $ = layui.jquery;
        var table = layui.table;
        var laydate = layui.laydate;
        var form = layui.form;
        
        table.render({
            elem: '#dataTable'
            ,url: '{:url("logDetail",["order_id"=>$orderId,"mid"=>$mid])}' //数据接口
            ,page: true //开启分页
            ,skin: 'row'
            ,even: true
            ,limit: 20
            ,limits: [20,50,100,150,200]
            ,text: {
                none : '暂无相关数据'
            }
            ,toolbar: true
            ,cellMinWidth: 80
            ,defaultToolbar: ['filter', 'exports', 'print']
            ,cols: [[ //表头
                {field: 'id', title: '编号',width: 60}
                ,{field: 'admin', title: '负责人'}
                ,{field: 'remark', title: '详情'}
                ,{field: 'time', title: '操作时间', templet: function(d){return layui.util.toDateString(d.time*1000)}}
            ]]
        });
    });
</script>